import request from '@/utils/request'



// 商品分类列表
export function goodsCateLists(params?: any) {
    return request.get({ url: '/goodsCate/lists', params })
}

// 添加商品分类
export function goodsCateAdd(params: any) {
    return request.post({ url: '/goodsCate/add', params })
}

// 编辑商品分类
export function goodsCateEdit(params: any) {
    return request.post({ url: '/goodsCate/edit', params })
}

// 删除商品分类
export function goodsCateDelete(params: any) {
    return request.post({ url: '/goodsCate/delete', params })
}
// 恢复商品分类
export function goodsCateRecover(params: any) {
    return request.post({ url: '/goodsCate/recover', params })
}
// 商品分类详情
export function goodsCateDetail(params: any) {
    return request.get({ url: '/goodsCate/detail', params })
}



// 商品列表
export function goodsLists(params?: any) {
    return request.get({ url: '/goods/lists', params })
}

// 添加商品
export function goodsAdd(params: any) {
    return request.post({ url: '/goods/add', params })
}

// 编辑商品
export function goodsEdit(params: any) {
    return request.post({ url: '/goods/edit', params })
}

// 删除商品
export function goodsDelete(params: any) {
    return request.post({ url: '/goods/delete', params })
}

// 商品详情
export function goodsDetail(params: any) {
    return request.get({ url: '/goods/detail', params })
}

// 商品分类状态
export function goodsRecover(params: any) {
    return request.post({ url: '/goods/recover', params })
}
